package com.google.code.ptrends.common.entities;

public class Property {
	private int id;
	private String name;
	private String value;

	public int getId() {
		return id;
	}

	public void setId(final int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(final String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return this.name;
	}

	public void setValue(final String value) {
		if (value == null || "".equals(value)) {
			throw new IllegalArgumentException("Illegal null or empty value");
		}

		this.value = value;
	}

	public String getValue() {
		return value;
	}
}